package day1230

func rand7() int {
	return 1
}

func rand10() int {
	for {
		m := rand7()
		n := rand7()
		index := (n-1)*7 + m
		if index <= 40 {
			return (index-1)%10 + 1
		}
	}
}
